package cn.cj.erp.common.vo;

import cn.cj.erp.bo.system.SysRoleBo;
import cn.cj.erp.bo.system.SysUserBo;
import lombok.Data;
import java.util.List;

/**
 * 获取用户详细信息
 * @author chenjian
 */
@Data
public class SysUserDetailVo {
    /** 用户实体类 */
    private SysUserBo user;

    /** 用户关联的角色ID列表 */
    private List<String> roleIds;

    /** 全部角色实体类，用于前端生成角色复选框 */
    private List<SysRoleBo> roles;

    public SysUserDetailVo() {
    }

    public SysUserDetailVo(List<SysRoleBo> roles) {
        this.roles = roles;
    }

    public SysUserDetailVo(SysUserBo user, List<String> roleIds, List<SysRoleBo> roles) {
        this.user = user;
        this.roleIds = roleIds;
        this.roles = roles;
    }
}
